Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
freetype-sys
Low level bindings for the FreeType font library.
Statically linking against FreeType
If the bundled
feature is enabled, freetype-sys
will build and link a static copy of FreeType. This requires a C compiler. The included version of FreeType is 2.13.2.
[dependencies]
freetype-sys = { version = "0.21", features = ["bundled"] }
For Windows users
-pc-windows-gnu
In order to easily setup FreeType just get MSYS2 and install either the mingw-w64-x86_64-freetype
or mingw-w64-i686-freetype
package and then use Rust from within the correct MinGW shell of MSYS2.
More information on setting up MSYS2 for Rust can be found in the Rust installing from source document.
-pc-windows-msvc
Prebuilt libraries for FreeType are available here.
Then in the root of your project, in one of the parent directories, or in your home directory, create a .cargo directory. This directory should contain a config
file that contains the following snippet:
[]
= ["C:\\Path\\To\\binaries\\i686"]
= ["freetype"]
[]
= ["C:\\Path\\To\\binaries\\x86_64"]
= ["freetype"]
For more informations, check the official Cargo documentation.